package com.course_design.entity;

import java.util.ArrayList;
import java.util.List;

public class StudentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StudentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStudentnumIsNull() {
            addCriterion("studentNum is null");
            return (Criteria) this;
        }

        public Criteria andStudentnumIsNotNull() {
            addCriterion("studentNum is not null");
            return (Criteria) this;
        }

        public Criteria andStudentnumEqualTo(String value) {
            addCriterion("studentNum =", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumNotEqualTo(String value) {
            addCriterion("studentNum <>", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumGreaterThan(String value) {
            addCriterion("studentNum >", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumGreaterThanOrEqualTo(String value) {
            addCriterion("studentNum >=", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumLessThan(String value) {
            addCriterion("studentNum <", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumLessThanOrEqualTo(String value) {
            addCriterion("studentNum <=", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumLike(String value) {
            addCriterion("studentNum like", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumNotLike(String value) {
            addCriterion("studentNum not like", value, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumIn(List<String> values) {
            addCriterion("studentNum in", values, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumNotIn(List<String> values) {
            addCriterion("studentNum not in", values, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumBetween(String value1, String value2) {
            addCriterion("studentNum between", value1, value2, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnumNotBetween(String value1, String value2) {
            addCriterion("studentNum not between", value1, value2, "studentnum");
            return (Criteria) this;
        }

        public Criteria andStudentnameIsNull() {
            addCriterion("studentName is null");
            return (Criteria) this;
        }

        public Criteria andStudentnameIsNotNull() {
            addCriterion("studentName is not null");
            return (Criteria) this;
        }

        public Criteria andStudentnameEqualTo(String value) {
            addCriterion("studentName =", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotEqualTo(String value) {
            addCriterion("studentName <>", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameGreaterThan(String value) {
            addCriterion("studentName >", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameGreaterThanOrEqualTo(String value) {
            addCriterion("studentName >=", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameLessThan(String value) {
            addCriterion("studentName <", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameLessThanOrEqualTo(String value) {
            addCriterion("studentName <=", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameLike(String value) {
            addCriterion("studentName like", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotLike(String value) {
            addCriterion("studentName not like", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameIn(List<String> values) {
            addCriterion("studentName in", values, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotIn(List<String> values) {
            addCriterion("studentName not in", values, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameBetween(String value1, String value2) {
            addCriterion("studentName between", value1, value2, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotBetween(String value1, String value2) {
            addCriterion("studentName not between", value1, value2, "studentname");
            return (Criteria) this;
        }

        public Criteria andSexIsNull() {
            addCriterion("sex is null");
            return (Criteria) this;
        }

        public Criteria andSexIsNotNull() {
            addCriterion("sex is not null");
            return (Criteria) this;
        }

        public Criteria andSexEqualTo(Byte value) {
            addCriterion("sex =", value, "sex");
            return (Criteria) this;
        }

        public Criteria andSexNotEqualTo(Byte value) {
            addCriterion("sex <>", value, "sex");
            return (Criteria) this;
        }

        public Criteria andSexGreaterThan(Byte value) {
            addCriterion("sex >", value, "sex");
            return (Criteria) this;
        }

        public Criteria andSexGreaterThanOrEqualTo(Byte value) {
            addCriterion("sex >=", value, "sex");
            return (Criteria) this;
        }

        public Criteria andSexLessThan(Byte value) {
            addCriterion("sex <", value, "sex");
            return (Criteria) this;
        }

        public Criteria andSexLessThanOrEqualTo(Byte value) {
            addCriterion("sex <=", value, "sex");
            return (Criteria) this;
        }

        public Criteria andSexIn(List<Byte> values) {
            addCriterion("sex in", values, "sex");
            return (Criteria) this;
        }

        public Criteria andSexNotIn(List<Byte> values) {
            addCriterion("sex not in", values, "sex");
            return (Criteria) this;
        }

        public Criteria andSexBetween(Byte value1, Byte value2) {
            addCriterion("sex between", value1, value2, "sex");
            return (Criteria) this;
        }

        public Criteria andSexNotBetween(Byte value1, Byte value2) {
            addCriterion("sex not between", value1, value2, "sex");
            return (Criteria) this;
        }

        public Criteria andAgeIsNull() {
            addCriterion("age is null");
            return (Criteria) this;
        }

        public Criteria andAgeIsNotNull() {
            addCriterion("age is not null");
            return (Criteria) this;
        }

        public Criteria andAgeEqualTo(Integer value) {
            addCriterion("age =", value, "age");
            return (Criteria) this;
        }

        public Criteria andAgeNotEqualTo(Integer value) {
            addCriterion("age <>", value, "age");
            return (Criteria) this;
        }

        public Criteria andAgeGreaterThan(Integer value) {
            addCriterion("age >", value, "age");
            return (Criteria) this;
        }

        public Criteria andAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("age >=", value, "age");
            return (Criteria) this;
        }

        public Criteria andAgeLessThan(Integer value) {
            addCriterion("age <", value, "age");
            return (Criteria) this;
        }

        public Criteria andAgeLessThanOrEqualTo(Integer value) {
            addCriterion("age <=", value, "age");
            return (Criteria) this;
        }

        public Criteria andAgeIn(List<Integer> values) {
            addCriterion("age in", values, "age");
            return (Criteria) this;
        }

        public Criteria andAgeNotIn(List<Integer> values) {
            addCriterion("age not in", values, "age");
            return (Criteria) this;
        }

        public Criteria andAgeBetween(Integer value1, Integer value2) {
            addCriterion("age between", value1, value2, "age");
            return (Criteria) this;
        }

        public Criteria andAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("age not between", value1, value2, "age");
            return (Criteria) this;
        }

        public Criteria andStudentphoneIsNull() {
            addCriterion("studentPhone is null");
            return (Criteria) this;
        }

        public Criteria andStudentphoneIsNotNull() {
            addCriterion("studentPhone is not null");
            return (Criteria) this;
        }

        public Criteria andStudentphoneEqualTo(String value) {
            addCriterion("studentPhone =", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneNotEqualTo(String value) {
            addCriterion("studentPhone <>", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneGreaterThan(String value) {
            addCriterion("studentPhone >", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneGreaterThanOrEqualTo(String value) {
            addCriterion("studentPhone >=", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneLessThan(String value) {
            addCriterion("studentPhone <", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneLessThanOrEqualTo(String value) {
            addCriterion("studentPhone <=", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneLike(String value) {
            addCriterion("studentPhone like", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneNotLike(String value) {
            addCriterion("studentPhone not like", value, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneIn(List<String> values) {
            addCriterion("studentPhone in", values, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneNotIn(List<String> values) {
            addCriterion("studentPhone not in", values, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneBetween(String value1, String value2) {
            addCriterion("studentPhone between", value1, value2, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentphoneNotBetween(String value1, String value2) {
            addCriterion("studentPhone not between", value1, value2, "studentphone");
            return (Criteria) this;
        }

        public Criteria andStudentqqIsNull() {
            addCriterion("studentQQ is null");
            return (Criteria) this;
        }

        public Criteria andStudentqqIsNotNull() {
            addCriterion("studentQQ is not null");
            return (Criteria) this;
        }

        public Criteria andStudentqqEqualTo(String value) {
            addCriterion("studentQQ =", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqNotEqualTo(String value) {
            addCriterion("studentQQ <>", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqGreaterThan(String value) {
            addCriterion("studentQQ >", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqGreaterThanOrEqualTo(String value) {
            addCriterion("studentQQ >=", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqLessThan(String value) {
            addCriterion("studentQQ <", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqLessThanOrEqualTo(String value) {
            addCriterion("studentQQ <=", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqLike(String value) {
            addCriterion("studentQQ like", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqNotLike(String value) {
            addCriterion("studentQQ not like", value, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqIn(List<String> values) {
            addCriterion("studentQQ in", values, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqNotIn(List<String> values) {
            addCriterion("studentQQ not in", values, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqBetween(String value1, String value2) {
            addCriterion("studentQQ between", value1, value2, "studentqq");
            return (Criteria) this;
        }

        public Criteria andStudentqqNotBetween(String value1, String value2) {
            addCriterion("studentQQ not between", value1, value2, "studentqq");
            return (Criteria) this;
        }

        public Criteria andClassinfoIsNull() {
            addCriterion("classInfo is null");
            return (Criteria) this;
        }

        public Criteria andClassinfoIsNotNull() {
            addCriterion("classInfo is not null");
            return (Criteria) this;
        }

        public Criteria andClassinfoEqualTo(Integer value) {
            addCriterion("classInfo =", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoNotEqualTo(Integer value) {
            addCriterion("classInfo <>", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoGreaterThan(Integer value) {
            addCriterion("classInfo >", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoGreaterThanOrEqualTo(Integer value) {
            addCriterion("classInfo >=", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoLessThan(Integer value) {
            addCriterion("classInfo <", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoLessThanOrEqualTo(Integer value) {
            addCriterion("classInfo <=", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoIn(List<Integer> values) {
            addCriterion("classInfo in", values, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoNotIn(List<Integer> values) {
            addCriterion("classInfo not in", values, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoBetween(Integer value1, Integer value2) {
            addCriterion("classInfo between", value1, value2, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoNotBetween(Integer value1, Integer value2) {
            addCriterion("classInfo not between", value1, value2, "classinfo");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}